package com.silverbox.shopper.mapper;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.ThirdUserInfo;

import java.util.List;

public interface ThirdUserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ThirdUserInfo record);

    int insertSelective(ThirdUserInfo record);

    ThirdUserInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ThirdUserInfo record);

    int updateByPrimaryKey(ThirdUserInfo record);
    
    /**
     * 根据用户id及来源获取第三方用户信息
     * @param buyerId
     * @param source
     * @return
     */
    ThirdUserInfo selectByBuyerId(@Param("buyerId")String buyerId, @Param("source")Integer source);

    List<String> getThirdUserInfoByMemberUid(@Param("memberUid") String memberUid);
}